import jdk.nashorn.internal.ir.CallNode;
import sun.util.resources.ParallelListResourceBundle;

import java.awt.*;

public class Test {


    int max(int[] arr) {
        int max = 0;
        while (true) {
            if (arr == null) {
                break;
            }
            int i = 0;
            max = arr[i];
            while (i < arr.length - 1) {
                if (max < arr[i]) {
                    max = arr[i];
                }
                ++i;
            }
            break;
        }
        return max;
    }

    public static void main(String[] args) {
        int[] arr = {};
        Test test = new Test();
        test.max(arr);

    }
}